<?php
	$PHP_SELF = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : (isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : $_SERVER['ORIG_PATH_INFO']);
	$rootpath = str_replace('\\','/',dirname($PHP_SELF));
	echo $rootpath;
?>